/*
 * @Author: zqx me_zqx@163.com
 * @Date: 2025-03-06 17:31:24
 * @LastEditors: zqx me_zqx@163.com
 * @LastEditTime: 2025-06-30 15:49:46
 * @FilePath: /meeting-minutes-h5/src/components/ConferenceMinutes/Summary/modelMap.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

export interface MethodologyType {
  key: string;
  name: string;
  description?: string;
  value: number;
}

export interface MethodologyData {
  conferenceId: string;
  content: string;
  hostUserId?: string;
  id?: string;
  methodology: string;
  orgId: string;
  reportStatus: string;
}

// {
//   key: "NORMAL",
//   name: "通用",
//   description: "概要总结、进程、参会人观点",
//   value: 0
// },
let array: MethodologyType[] = [

  {
    key: "BANT",
    name: "BANT",
    description: "预算、决策权、需求、时间表",
    value: 1
  },
  {
    key: "MEDDIC",
    name: "MEDDIC",
    description:
      "度量标准、经济买家、决策标准、 决策流程 、痛点识别、内部支持者",
    value: 2
  },
  {
    key: "SPICED",
    name: "SPICED",
    description: "情境、痛点、影响、关键事件、经济买家 、决策流程",
    value: 3
  },
  {
    key: "NEAT",
    name: "NEAT",
    description: "需求、经济影响、接触决策者、时间表",
    value: 4
  }
];

export function getModelWithKey(key: string): MethodologyType | undefined {
  let le = array.find(model => model.key === key);
  if (!le) {
    le = array.find(model => model.key === "NORMAL");
  }
  return le;
}

export function getModelList(): MethodologyType[] {
  return array;
}
